<extend name="Base/common"/>
<block name="style">
   <link href="__CSS__/jxgl.css" type="text/css" rel="stylesheet">
</block>
<!-- <block name="header">
    <include file="Public/_nav"/>
</block> -->
<block name="body">

      <!--   <include file="Public/_hot_sell"/> -->
        <!-- 左侧菜start -->
        <div class="col-xs-2">

            <div class="common_block_border">
                <div class="content ">
                <include file="Public/my"  /> 
                </div>
            </div>
            <div class="clearfix"></div>
            
             <div class="common_block_border">                
                <div class="content ">
                <include file="Public/sidebar"  />
                </div>
            </div>
        </div>
        <!-- 左侧菜end -->

        <!-- 右侧内容开始 -->
        <div class="col-xs-10">
        <div class="common_block_border">
          <ul class="nav nav-tabs">
          <li><a href="{:U('Jshj/index')}">教师获奖登记</a></li>
          <li class="active"><a href="{:U('Jshj/hjhz')}">教师获奖汇总</a></li>
          <li><a href="{:U('Lwfb/index')}">教师论文发表登记</a></li>
          <li><a href="{:U('Lwfb/hz')}">教师论文发表汇总</a></li>
          </ul>
          <!-- 查询表单start -->
                <div class="right_box">
                    <form method='post' id="form1" name="form1"  action="{:U('Jshj/hjhz')}" class="form-horizontal form-condensed">

                       <div class="form-group">


                       <label class="col-md-1 control-label" for="teacher">姓名:</label>
                       <div class="col-md-2">
                       <input type="text" class="form-control" name="teacher" id="teacher" value="{$teacher}">
                       </div>
                 
                       <div class="col-md-1">
                       <button type="submit" class="btn btn-primary">&nbsp;查询&nbsp;</button></div>
                       <div class="col-md-2">
                       <a href="{:U('Jshj/excel_2')}" class="btn btn-danger ">&nbsp;导出汇总金额&nbsp;</a></div>
                      <a href="{:U('Jshj/excel_1')}" class="btn btn-success ">&nbsp;导出&nbsp;Excel汇总表&nbsp;</a></div>
                  </form> 
                </div>
                <!-- 查询表单end -->
       <!-- 数据表格开始 -->
             <div class="right_box">
              <table class="table table-bordered">
              <COLGROUP span="5"></COLGROUP>
              <COL width="30%" ></COL>
                <thead>
                  <tr>
                    <th>#</th>
                    <th>学年</th>
                    <th>获奖日期</th>
                    <th>教师</th>
                    <th>类别</th>
                    <th>获奖内容</th>
                    <th>获奖等级</th>
                    <th>登记日期</th>
                    <th>操作</th>
                  </tr>
                </thead>
                <volist name='list' id='vo'>
                  <tr>
                    <td>{$i}</td>
                    <td>{$vo.year}学年</td>
                    <td>
                    <if condition="($vo.status neq 1)"> 
                    <span style="color:red"> {$vo.date}</span>
                     <else/>
                    {$vo.date}
                    </if>
                    </td>
                    <td>{$vo.teacher}</td>
                    <td>{$vo.leibie}</td>
                    <td>{$vo.content}</td>
                    <td>{$vo.hjdj}</td>
                    <td>{$vo.create_time|date="Y-m-d",###}</td>
                    <td><a href="{:U('Jshj/edit?id='.$vo['id'])}" ><i class="icon icon-edit"></i></a>
                    <a href= "{:U('Jshj/delete?id='.$vo['id'])}" ><i class="icon icon-trash"></i></a></td>
                  </tr>
                  </volist>
                </tbody>
              </table>
              </div> 
               <!-- 数据表格开始 -->
               <!-- 分页 -->
               <div class="right_box text-right"> 
                 &nbsp; {:getPagination($totalPageCount,$r)}
                </div>
              <!-- 分页 -->
            
        </div>
    </div>
  <!-- 右侧内容结束 -->  
 

   
</block>
